/**
 * Created with JetBrains PhpStorm.
 * User: ishowshao
 * Date: 12-7-13
 * Time: 下午4:30
 */

/**
 * @class FlyFight.view.Airport
 * @extends Zen.View
 */
FlyFight.view.Airport = Zen.extend(Zen.View, {
    el: '#my-airport',
    initView: function (config) {
        /**
         * @type {FlyFight.view.Grid}
         * @private
         */
        this._grid = new FlyFight.view.Grid({
            x: config['x'],
            y: config['y'],
            cell: FlyFight.view.CELL_WIDTH_HEIGHT
        });
    },
    render: function () {
        this._grid.render(this.el);
    },
    getGrid: function () {
        return this._grid;
    },
    getOffset: function () {
        return this.el.offset();
    }
});

